package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.OaIssuingCompanyMapper;
import com.ruoyi.system.domain.OaIssuingCompany;
import com.ruoyi.system.service.IOaIssuingCompanyService;

/**
 * 开具公司Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-03-13
 */
@Service
public class OaIssuingCompanyServiceImpl implements IOaIssuingCompanyService 
{
    @Autowired
    private OaIssuingCompanyMapper oaIssuingCompanyMapper;

    /**
     * 查询开具公司
     * 
     * @param id 开具公司主键
     * @return 开具公司
     */
    @Override
    public OaIssuingCompany selectOaIssuingCompanyById(Long id)
    {
        return oaIssuingCompanyMapper.selectOaIssuingCompanyById(id);
    }

    /**
     * 查询开具公司列表
     * 
     * @param oaIssuingCompany 开具公司
     * @return 开具公司
     */
    @Override
    public List<OaIssuingCompany> selectOaIssuingCompanyList(OaIssuingCompany oaIssuingCompany)
    {
        return oaIssuingCompanyMapper.selectOaIssuingCompanyList(oaIssuingCompany);
    }

    /**
     * 新增开具公司
     * 
     * @param oaIssuingCompany 开具公司
     * @return 结果
     */
    @Override
    public int insertOaIssuingCompany(OaIssuingCompany oaIssuingCompany)
    {
        return oaIssuingCompanyMapper.insertOaIssuingCompany(oaIssuingCompany);
    }

    /**
     * 修改开具公司
     * 
     * @param oaIssuingCompany 开具公司
     * @return 结果
     */
    @Override
    public int updateOaIssuingCompany(OaIssuingCompany oaIssuingCompany)
    {
        return oaIssuingCompanyMapper.updateOaIssuingCompany(oaIssuingCompany);
    }

    /**
     * 批量删除开具公司
     * 
     * @param ids 需要删除的开具公司主键
     * @return 结果
     */
    @Override
    public int deleteOaIssuingCompanyByIds(Long[] ids)
    {
        return oaIssuingCompanyMapper.deleteOaIssuingCompanyByIds(ids);
    }

    /**
     * 删除开具公司信息
     * 
     * @param id 开具公司主键
     * @return 结果
     */
    @Override
    public int deleteOaIssuingCompanyById(Long id)
    {
        return oaIssuingCompanyMapper.deleteOaIssuingCompanyById(id);
    }
}
